#ifndef __ALPHA_STATE_H__
#define __ALPHA_STATE_H__

#include "RenderState.h"

class AlphaState : public RenderState
{
public:
	AlphaState();
	virtual Type get_type() const;

	// blending
	bool& blend_enabled();
	GLenum& src_blend();
	GLenum& dst_blend();

	// testing
	bool& test_enabled();
	GLenum& test();;

protected:
	bool blend_enabled;
	GLenum srcblend;
	GLenum dstblend;

	bool testenabled;
	GLenum ftest;
	Real freference; 
};

#include "AlphaState.inl"
#endif